﻿/*
 * Created by SharpDevelop.
 * User: thanh.nguyenchi
 * Date: 12/3/2011
 * Time: 9:20 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using VDataAdapter.BlockingQueue;

namespace VDataAdapter.BlockingQueue
{
	/// <summary>
	/// Description of GetGiftCode.
	/// </summary>
	public class MessageObject : BaseObject
	{
    	private string msg;
    	private string objName = "MessageObject";
    	
		public MessageObject(string msg){
    		this.msg = msg;
		}
    	
		public override String toString(){
	        return "{object:" + objName + ",code:" + this.getResultCode() + ",result:" + this.getResultString() + "}";
	    }
    	
    	public override string getObjectType(){
			return this.objName;
		}    	    	
    	
    	public string getMsg(){
    		return this.msg;
    	}
	}
}
